<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
        <meta name='description' content='' />
        <meta name='keywords' content='' />
        <meta name='robots' content='index,follow' />
        <?php
        echo"<link rel='stylesheet'  type='text/css' href='" . base_url() . "themes/login/styles.css'media='screen'/>";
        ?>
        <title>Login | Control Panel</title>
        <script language="javascript">
            function validasi(form){
                if (form.username.value ==""){
                    alert("Anda belum mengisikan username");
                    form.username.focus();
                    return(false);
                }
                if  (form.password.value ==""){
                    alert("Anda belum mengisi password");
                    form.password.focus();
                    return(false);
                }
                return(true);
            }

        </script>

    </head>
    <body class="common"  >
        <div class="loginWrapper">
            <div class="loginBox-head">
                <h1>Sistem Akademik SMA N 1 Godean Login </h1>
            </div>
            <div class="img" >
                <img src="<?php base_url();?> themes/images/key-icon.png" alt="" /> 
            </div>
            <div class="loginBox-body">
                <?php echo form_open('login/validasi_login'); ?>

                <label for="aid_username">Username :</label>
                <input type="text" name="username" />
                <br />
                <label for="aid_password">Password :</label>
                <input type="password" name="password" />
                <p>Don't have id ? <a href="input_user.php">Register now</a></p>
                <?php
                $sd = array(
                    'name' => 'submit',
                    'class' => 'button'
                );
                echo form_submit($sd);
                ?>
                <?php echo form_close(); ?>

            </div>
        </div>
        <div class="footer">
            <p>version 1.1</p>
            <p>Copyright &copy;Web Developer 28</p>
        </div>
    </body>
</html>
